package cn.ywang.strategy.pay;

import cn.ywang.strategy.pay.payport.PayType;

/**
 * @Auther: BeatificWang
 * @Date: 2018/9/30 21:35
 */
public class Order {
	private String uid;

	private String orderId;

	private double amount;

	public Order(String uid, String orderId, double amount) {
		this.uid = uid;
		this.orderId = orderId;
		this.amount = amount;
	}

	public PayState pay(PayType payType) {
		return payType.getPayment().pay(this.uid, this.amount);
	}
}
